package com.net.xpay.common.dao.sync;

import com.net.xpay.common.domain.sync.CommonUserWithdrawRecord;
import com.net.xpay.common.model.search.CommonUserWithdrawSearchModel;
import com.net.common.dao.Page;
import com.net.common.dao.PagedMapper;
import com.net.common.annotation.DataCommon;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author 86188
 */
@DataCommon
@Repository
public interface CommonUserWithdrawRecordMapper extends PagedMapper<Long, CommonUserWithdrawRecord> {
    List<CommonUserWithdrawRecord> search(@Param("searchModel") CommonUserWithdrawSearchModel searchModel, @Param("page") Page page);

    long searchCount(@Param("searchModel")CommonUserWithdrawSearchModel searchModel);

    long sumSuccessTransferMoney(@Param("userId")Long userId,@Param("minEndTime") LocalDateTime minEndTime,@Param("maxEndTime") LocalDateTime maxEndTime);
}
